﻿using LY.Entity;
using LY.Entity.PageSearch;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LY.Interface
{
  public interface IDeptService
    {
        /// <summary>
        /// 检索会员投资列表
        /// </summary>
        /// <param name="search"></param>
        /// <param name="view"></param>
        /// <returns></returns>
      PagedList<S_Dept> QueryDeptList(PageView view);

      PagedList<LY.Entity.Entities.S_Dept_EX> QueryDeptEXList(PageView view);


        /// <summary>
        /// 新增 编辑项目信息
        /// </summary>
        /// <param name="inves"></param>
        /// <returns></returns>
        int SaveDept(S_Dept dept);

        /// <summary>
        /// 删除项目信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int DeleteDept(int id);

        /// <summary>
        /// 检索投资信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        S_Dept GetDept(int? id);
        //string GetDeptNo();
        //S_Dept GetDept(int? id);
        List<S_Dept> GetDeptList();
        
        /// <summary>
        /// 查询部门编号的个数
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        int SelectCodeCount(int id,string code);
    }
}
